<?php

class CashWithdrawalPageLink extends Extension {
	function getCashWithdrawal(){
        $page = CashWithdrawalPage::get()->find('ClassName', 'CashWithdrawalPage');
        if($page) return $page;
    }
    
    function getCashWithdrawalLink() {
        $page = $this->getCashWithdrawal();
        if($page) return $page->Link();
    }
	
    function getCashWithdrawalStatement(){
        $page = CashWithdrawalStatementPage::get()->find('ClassName', 'CashWithdrawalStatementPage');
        if($page) return $page;
    }
    
    function getCashWithdrawalStatementLink() {
        $page = $this->getCashWithdrawalStatement();
        if($page) return $page->Link();
    }
}
